package com.cn.rocketmq.producer.enums;

import lombok.Getter;

@Getter
public enum DelayEnum {

    ONE_SECOND(1, "1S"),

    FIVE_SECOND(2, "5S"),

    TEN_SECOND(3, "10S"),

    ONE_MINUTE(4, "1M"),

    TWO_MINUTE(5, "2M"),

    THREE_MINUTE(6, "3M"),

    FOUR_MINUTE(7, "4M"),

    FIVE_MINUTE(8, "5M"),

    SIX_MINUTE(9, "6M"),

    SEVEN_MINUTE(10, "7M"),

    EIGHT_MINUTE(11, "8M"),

    NINE_MINUTE(12, "9M"),

    TEN_MINUTE(13, "10M"),

    TWENTY_MINUTE(14, "20M"),

    THIRTY_MINUTE(15, "30M"),

    ONE_HOUR(16, "1H"),

    TWO_HOUR(17, "2H")

    ;

    private final Integer delayLevel;

    private final String desc;

    DelayEnum(Integer delayLevel, String desc) {
        this.delayLevel = delayLevel;
        this.desc = desc;
    }

}
